package com.hr;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.espirit.EntityMapping;
import com.espirit.eap.annotation.ModelDisplayProperty;
import com.googlecode.cswish.model.Saas;

@Entity
//@DomainModel
@ModelDisplayProperty("scope")
@BatchSize(size=15)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class SchedualScope extends EntityMapping implements Serializable, Saas {

	private static final long serialVersionUID = 2714428419742361381L;

	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}
	
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}

	@ManyToOne
	public SchedualDefine getParent() {
		return parent;
	}
	public void setParent(SchedualDefine parent) {
		this.parent = parent;
	}

	private SchedualDefine parent;
	private String scope;
}
